package com.dmap.admin.bo.backgroundv2;

import com.dmap.admin.po.Department;
import com.dmap.base.pojo.BasePojo;

/**
 * \* User: helei
 * \* Date: 02/05/18
 * \* Description:
 * \
 */
public class DepartmentBo extends BasePojo {
    private String id;//主键id
    private String name;//部门名称
    private String companyId;//所在公司id
    private String companyName;//所在公司名称
    private Integer companyType;//所在公司类型：1.总公司， 2分公司
    private String creatorId;//该条记录是由谁创建的
    private String description;//职能描述
    private Integer status;//状态：1正常，2禁用
    private Long createTime;//创建时间

    private Integer memberNum = 0;//该部门成员数量

    public DepartmentBo(Department department) {
        this.id = department.getId().toString();
        this.name = department.getName();
        this.companyId = department.getCompanyId().toString();
        this.companyName = department.getCompanyName();
        this.companyType = department.getCompanyType();
        this.creatorId = department.getCreatorId().toString();
        this.description = department.getDescription();
        this.status = department.getStatus();
        this.createTime = department.getCreateTime();
    }

    public Integer getCompanyType() {
        return companyType;
    }

    public void setCompanyType(Integer companyType) {
        this.companyType = companyType;
    }

    public String getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Integer getMemberNum() {
        return memberNum;
    }

    public void setMemberNum(Integer memberNum) {
        this.memberNum = memberNum;
    }
}